﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jayden.Dll.ECMAScript
{
	public class While : StatementList
	{
		private Expression m_WhileExpression;

		public override void RenderStatement(int level, StringBuilder builder)
		{
			StatementList.AppendSpacing(level, "\t", builder);
			builder.Append("while (");
			m_WhileExpression.RenderExpression(builder);
			builder.AppendLine(") {");
			base.RenderStatement(level + 1, builder);
			StatementList.AppendSpacing(level, "\t", builder);
			builder.AppendLine("}");
		}
	}
}
